package com.nbicc.common;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Api("分页请求")
@Data
public class RequestPageObj<T> {

    @ApiModelProperty(value = "页号 可以和页长同时不传")
    private Integer pageNum;
    @ApiModelProperty(value = "页长")
    private Integer pageSize;
    @ApiModelProperty(value = "排序 (   字段名  [asc desc]必须小写  )  可以不传")
    private String sort;

    private T data;

    public Integer getPageNum() {
        return pageNum;
    }

    public RequestPageObj setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
        return this;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public RequestPageObj setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
        return this;
    }

    public T getData() {
        return data;
    }

    public RequestPageObj setData(T data) {
        this.data = data;
        return this;
    }
}
